import type { Plugin } from '#/global'

const pluginConfig: Plugin.PluginConfig = {
  install() { },
  config: {
    enable: import.meta.env.DEV,
    info: {
      name: 'ai-warning/alarm',
      version: '1.0.0',
      author: 'X.Mo',
      description: '提供预警告警功能',
    },
  },
  views: [
    {
      name: 'AlarmRoute',
      path: '/alarm',
      meta: {
        title: '预警告警',
        i18n: 'menu.alarm',
        icon: 'ep:warning',
        type: 'M',
        hidden: false,
        subForceShow: true,
        breadcrumbEnable: true,
        copyright: false,
        cache: true,
      },
      children: [
        {
          name: 'rd_alarm_msg:rdAlarmMsg',
          path: '/alarm/rdAlarmMsg',
          meta: {
            title: '预警消息',
            i18n: 'rd_alarm_msg.menu.rdAlarmMsg',
            icon: 'ep:bell',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdAlarmMsg/index.vue'),
        },
        {
          name: 'rd_alarm_warn_record:rdAlarmWarnRecord',
          path: '/alarm/rdAlarmWarnRecord',
          meta: {
            title: '预警记录',
            i18n: 'rd_alarm_warn_record.menu.rdAlarmWarnRecord',
            icon: 'ep:document',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdAlarmWarnRecord/index.vue'),
        },
        {
          name: 'rd_alarm_hk_type:rdAlarmHkType',
          path: '/alarm/rdAlarmHkType',
          meta: {
            title: '预警类型',
            i18n: 'rd_alarm_hk_type.menu.rdAlarmHkType',
            icon: 'ep:setting',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdAlarmType/index.vue'),
        },
        {
          name: 'rd_alarm_speak:rdAlarmSpeak',
          path: '/alarm/rdAlarmSpeak',
          meta: {
            title: '广播喊话',
            i18n: 'rd_alarm_speak.menu.rdAlarmSpeak',
            icon: 'ep:microphone',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdAlarmSpeak/index.vue'),
        },
        {
          name: 'rd_alarm_broadcast_record:rdAlarmBroadcastRecord',
          path: '/alarm/rdAlarmBroadcastRecord',
          meta: {
            title: '广播喊话记录',
            i18n: 'rd_alarm_broadcast_record.menu.rdAlarmBroadcastRecord',
            icon: 'ep:document',
            type: 'M',
            hidden: false,
            breadcrumbEnable: true,
            copyright: true,
            cache: true,
          },
          component: () => import('./views/rdAlarmBroadcastRecord/index.vue'),
        },
      ],

    },
  ],
}

export default pluginConfig

